using System;
using System.IO;
using OSC.Base;
using OSC.FogBugz.Properties;

namespace OSC.FogBugz
{
    public class FogBugzOSCProvider : OSCProviderBase
    {
        public override string Version
        {
            get { return "1"; }
        }

        public override string[] DefaultSiteUrls
        {
            get
            {
                return new[] {"https://service.orbitone.com"};
            }
        }

        public override byte[] SocialNetworkIcon
        {
            get
            {
                var img = Resources.fogbugz;
                var imgMemoryStream = new MemoryStream();
                img.Save(imgMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg);
                byte[] imgByteArray = imgMemoryStream.GetBuffer();
                return imgByteArray;
            }
        }

        public override string SocialNetworkName
        {
            get { return "Fogbugz"; }
        }

        public override Guid SocialNetworkGuid
        {
            get { return new Guid("B4C9BA6C-AAB2-40DB-B5A9-4C20A769B9DA"); }
        }

        public override ISocialConnector CreateSession()
        {
            return new FogBugzSocialConnector();
        }

        protected override bool FollowPerson
        {
            get
            {
                return false;
            }
        }

        protected override bool UnfollowPerson
        {
            get
            {
                return false;
            }
        }
    }
}